//
//  OrderSettlementController.m
//  ios-supplier
//
//  Created by Benlai on 15/8/29.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#import "OrderSettlementController.h"
#import "JFBSettlementDS.h"
#import "JFBSettlementDetailsDS.h"
#import "StatisticsDetailController.h"
#import "JFBLoadingAnimation.h"
#import "OrderSettlementCell.h"
#import "SettlementDetailsController.h"
#import "MJRefresh.h"
#define screen_Width [UIScreen mainScreen].bounds.size.width
#define screen_Height [UIScreen mainScreen].bounds.size.height
#define orderSettlementURL @"http://118.186.246.206:8612/back-order/queryOrderList.do?"

@interface OrderSettlementController () 


@end

@implementation OrderSettlementController
-(void)viewWillAppear:(BOOL)animated{
    UIView *statusBackView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, screen_Width, 20)];
    statusBackView.backgroundColor = UIColorFromRGB(0xfc381e);
    [self.view addSubview:statusBackView];
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatWebView];
    self.navigationController.navigationBar.hidden = YES;
}
-(UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}

#pragma mark -创建webView
-(void)creatWebView{
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, screen_Width, screen_Height-44)];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/back-order/countOrder.do?ut=%@&type=1",API_HOST,[[NSUserDefaults standardUserDefaults] objectForKey:@"ut"]]]];
    NSLog(@",,,,,,,,,,,,,,,,,,,,,,%@",request);
    webView.scalesPageToFit = YES;
    [webView loadRequest:request];
    [self.view addSubview:webView];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}
//

@end
